﻿@model IEnumerable<KinoDB.Viewmodels.Internal.DutyRoster.MitarbeiterViewModel>

@{
    ViewBag.Title = "Staff Management";
}

<h2>Staff Management</h2>

<p>
    @Html.ActionLink("Create New", "CreateEmployee")
</p>
<table class="table">
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.Name)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Geburtsdatum)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Adresse)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Stundenlohn)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Name)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Geburtsdatum)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Adresse)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Stundenlohn)
        </td>
        <td>
            @Html.ActionLink("Edit", "EditEmployee", new { id=item.Id }) |
            @Html.ActionLink("Details", "EmployeeDetails", new { id=item.Id }) |
            @Html.ActionLink("Delete", "DeleteEmployee", new { id=item.Id })
        </td>
    </tr>
}

</table>
